package computacaografica;

import javax.swing.*;  

public class WindowUtilities {


    public static void setNativeLookAndFeel() {
        try {
            UIManager.setLookAndFeel(
                    UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e) {
            System.out.println("Error setting native LAF: " + e);
        }
    }
       public static void setNinbusLookAndFeel() {
        try {
          UIManager.LookAndFeelInfo[] laf =  UIManager.getInstalledLookAndFeels();
            
          for(int i= 0 ; i< laf.length; i++){
              System.out.println(laf[i]);
              if(laf[i].getName().equalsIgnoreCase("Nimbus")){
                  UIManager.setLookAndFeel(laf[i].getClassName());
              }
          }


        } catch (Exception e) {
            System.out.println("Error setting native LAF: " + e);
        }
    }

    public static void setJavaLookAndFeel() {
        try {
            UIManager.setLookAndFeel(
                    UIManager.getCrossPlatformLookAndFeelClassName());
        } catch (Exception e) {
            System.out.println("Error setting Java LAF: " + e);
        }
    }

    public static void setMotifLookAndFeel() {
        try {
            UIManager.setLookAndFeel(
                    "com.sun.java.swing.plaf.motif.MotifLookAndFeel");
        } catch (Exception e) {
            System.out.println("Error setting Motif LAF: " + e);
        }
    }

    public static void setMotifLookAndFeelMAC() {
        try {
            UIManager.setLookAndFeel(
                    "com.birosoft.liquid.LiquidLookAndFeel");
        } catch (Exception e) {
            System.out.println("Error setting Motif LAF: " + e);
        }
    }

}
